<style type="text/css">
.carousel-inner .item img{
	max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
	height:82px;
}
.star-rate {margin-left:0}
.fe-floatright-bottom a {
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 100%;
    background-color: #ff9999;
    color: #fff;
    line-height: 0.7rem;
	font-size:0.45rem;
    margin: 0.5rem auto;
    margin-right: 0;
}
.fe-floatright-bottom a .icon {
    color: #fff;
    font-size: 0.6rem;
    height: 0.6rem;
	line-height: 1rem;
    opacity: 1;
}
</style>

<div class='fui-page fui-page-current' ng-if="pagedata.op=='main'">
    <div class="fui-content" style="margin-bottom:2.2rem">
	<div class="fui-searchbar bar" style="background:none;z-index: 0;">
					<div ng-class="{'searchbar':1,'searchbar-active':pagedata.searchbar ==1}" style="background:none">
							<div style="position: relative;left:0;top:0;">
								<div class="search-input" style="">
									<i id="searchsub" class="icon icon-sousuo1"  ng-click="tool.get_list('jy_kexie/worker_list/getlist/',true)"></i>
									<input type="search" placeholder="搜索老师" class="search" ng-model="pagedata.params.keyword" style="text-align: left; color: #999; font-size:0.6rem;background:#fff;border-radius: 1rem;" />
								</div>
							</div>
					</div>
	</div>
	<div class="sort" style="top:0.2rem">
		<div class="fui-list-group usergroup" ng-repeat="item in pagedata.list">
            <div class="fui-list">
                <div class="fui-list-media userlogo" href="javascript:;" ng-click="access_json('jy_kexie/worker_list/detail/id='+item.id)">
                    <img class="round" ng-src="{{tomedia(item.headimg) || '../core/resource/images/nopic.jpg'}}">
                </div>
               <div class="fui-list-inner userinfo" style="margin-top:0.16rem" href="javascript:;" ng-click="access_json('jy_kexie/worker_list/detail/id='+item.id)">
                    <div class="title bold" style="font-size:0.8rem;"><span>{{item.name}}</span></div>
					<div class="subtitle" style="-webkit-line-clamp:2;font-size:0.65rem">
						{{item.remark || '该老师还未来的及填写个人简介'}}
					</div>
					<div class="subtitle" style="font-size:0.55rem">
						学校：{{item.store.title || '无'}}
					</div>
					<div class="subtitle" style="font-size:0.55rem">
						课程类型：{{item.lesson.title || '无'}}
					</div>
					<div class="weui_btn_all_sm" style="background:#4491F1" href="javascript:" ng-click="access_json('jy_kexie/worker_list/detail/id='+item.id)">详情资历</div>
                </div>
            </div>
		</div>
		<div ng-show="pagedata.loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
		<div class="content-empty" ng-show="!pagedata.list || pagedata.list.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">暂时没有老师！</p>
		</div>
	</div>
</div>
</div>
<div class='fui-page fui-page-current' ng-if="pagedata.op=='detail'">
<style>
.fui-block {margin:0.2rem 2rem;padding: 0.1rem;min-height:5rem;background-color: #f2f2f2;border-radius: 10px;text-align:center;line-height:1.2rem}
</style>
    <div class="fui-content" style="margin-bottom:2.2rem">
		<!--状态-->
			<div class="order_header" style="padding-top: .76rem; margin-bottom: -.266667rem;">
			  <div style="width:4rem;margin:0.5rem auto;">
				 <img class="img-circle" style="width:4rem;height:4rem;" ng-src="{{tomedia(pagedata.item.headimg) || '../core/resource/images/nopic.jpg'}}">
			  </div>
			  <div ng-if="!pagedata.item.id" class="red" style="width:2.6rem;margin:0 auto">
				<i class="icon icon-wrong" style="font-size:2.6rem"></i>
			  </div>
			  <div class="order_detail_ststus c" style="padding:0.3rem;background:none">
					<div class="bold">
						<div style="font-size: 0.85rem;">{{pagedata.item.name}}</div>
					</div>
					<div class="subtitle">{{pagedata.item.remark || '该老师还未来的及填写个人简介'}}</div>
					<div class="text">课程类型：{{pagedata.item.lesson_group.title || '无'}}</div>
					<div class="fui-block" style="display: block;">
						<p class="content-block content-images" ng-bind-html="trust(pagedata.item.desc)"></p>
					</div>
					<div class="fui-block" style="display: block;">
						<p class="content-block content-images" ng-bind-html="trust(pagedata.item.show)"></p>
					</div>
			  </div>
			</div>
			<div ng-if="pagedata.item.lessonid" class="weui_btn_area" style="margin:0 3rem">
				 <a class="weui_btn weui_btn_primary" href="javascript:"  ng-click="access_json('jy_kexie/lesson_detail//id='+pagedata.item.lessonid);">报名该老师课程</a>
			</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script type="text/javascript">
require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
	}); 
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
scope.pagedata.loading = true;
scope.pagedata.type=0	
scope.tool.get_list('jy_kexie/worker_list/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_kexie/worker_list/getlist/type='+scope.pagedata.type);
}
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>